package starlingui.component.drag
{
	import com.imcrl.component.drager.IDraggingImage;
	
	import starling.display.DisplayObject;
	import starling.textures.Texture;
	
	import starlingui.manager.TextureResource;
	
	/**
	 * 拖动时显示的图像;
	 * @author crl
	 * 
	 */	
	public class AbsDraggerImage implements IDraggingImage
	{
		private var icon:AbsIcon;
		private var emptyFilter:Array=[];
		public function AbsDraggerImage()
		{
			icon=new AbsIcon(TextureResource.getEmpty(118,120));
		}
		
		public function set data(value:*):void{
			icon.load(value);
		}
		
		public function getDisplay():DisplayObject
		{
			return icon;
		}
		
		public function switchToAcceptImage():void
		{
			//this.icon.color=0xFFFFFFFF;
		}
		
		public function switchToRejectImage():void
		{
			//this.icon.color=0xFF333333;
		}
		
		public function set action(value:String):void{
			//trace(this+":"+value);
		}
		
	}
}